﻿
lol_game_status_mgr_desc = 
{
    module_name = "lol_game_status_mgr",
    events = 
    {
        {
            c_event =
            {
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_RECVIE_FRIEND_REPORT,
                    callback = "lol_game_status_mgr:recv_friend_report"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_FRIEND_LIST,
                    callback = "lol_game_status_mgr:on_get_friendlist_done"
                },
                {
                    id  = ierd_tgp.game_library.UPDATE_GAME_STATE,
                    callback = 'lol_game_status_mgr:update_game_state'
                },
            },
            lua_event = 
            {
                {
                    id = "group_event.ADD_FRIEND_INTO_FRIEND_LIST",
                    callback = "lol_game_status_mgr:add_friend_into_friend_list"
                },
                {
                    id = "group_event.REMOVE_FRIEND_FROM_FRIEND_LIST",
                    callback = "lol_game_status_mgr:remove_friend_into_friend_list"
                },
                {
                    id = "social_event.SET_LOL_GAMING_USER_LIST",
                    callback = "lol_game_status_mgr:set_lol_gaming_user_list"
                },
            },
            lua_file = "social\\lol_game_status_mgr\\lol_game_status_mgr.lua"
        },

        {
            listen_broadcast =
            {
                {
                    id = "i_broadcast_social_info_center_update_lol_game_status",
                    callback = "lol_game_status_mgr:update_lol_game_status_response"
                },
                {
                    id = "i_broadcast_social_info_center_on_lol_player_status_changed",
                    callback = "lol_game_status_mgr:on_lol_player_status_changed"
                },
            },
            reg_service =
            {
                {
                    id = "i_servie_lol_game_status_get_lol_gaming_status_string",
                    callback = "lol_game_status_mgr:get_lol_gaming_status_string"
                },
                {
                    id = "i_service_lol_game_status_check_lol_status_valid",
                    callback = "lol_game_status_mgr:check_lol_status_valid_service"
                },
                {
                    id = "i_service_lol_game_status_is_playing_lol_game",
                    callback = "lol_game_status_mgr:is_playing_lol_game"
                },
                {
                    id = "i_service_lol_game_status_get_lol_gaming_friend_list",
                    callback = "lol_game_status_mgr:get_lol_gaming_friend_list"
                },                
                {
                    id = "i_service_lol_game_status_is_in_live_status",
                    callback = "lol_game_status_mgr:is_in_live_status"
                },
                
            },
            lua_file = "social\\lol_game_status_mgr\\lol_game_status_mgr.lua"
        },
    }
};


desc_mgr.add(lol_game_status_mgr_desc);